package com.jy.rhin.support.parsing;

import com.jy.rhin.application.enums.DocumentTypeEnum;
import com.jy.rhin.facade.dto.DocumentModule;
import com.jy.rhin.facade.dto.TemplateRespDto;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * [@Description: 新生儿家庭随访
 * [@Author: KaiLeZhou
 * [@Date: 2:36 下午 2024/4/16
 * [@Return:
 */

@Component
public class NewbornHomeVisitParser extends BaseDocumentParser {

    @Override
    public DocumentTypeEnum getDocumentType() {
        return DocumentTypeEnum.NEWBORN_HOME_VISITS;
    }

    /**
     * 会诊记录文档解析
     *
     * [@param json
     * [@param templateRespList
     */
    @Override
    public List<TemplateRespDto> documentParsing(Object json, List<TemplateRespDto> templateRespList) {
        return null;
    }

    @Override
    public List<DocumentModule> createBodyModule() {
        List<DocumentModule> list = new ArrayList<>();
        //文档体模块
        list.add(new DocumentModule("主要健康问题章节","/component/structuredBody/component/section/code[@code='11450-4']"));
        list.add(new DocumentModule("耳章节","/component/structuredBody/component/section/code[@code='10195-6']"));
        list.add(new DocumentModule("实验室检查章节","/component/structuredBody/component/section/code[@code='30954-2']"));
        list.add(new DocumentModule("生命体征章节","/component/structuredBody/component/section/code[@code='8716-3']"));
        list.add(new DocumentModule("皮肤章节","/component/structuredBody/component/section/code[@code='29302-7']"));
        list.add(new DocumentModule("一般外观章节","/component/structuredBody/component/section/code[@code='10210-3']"));
        list.add(new DocumentModule("头部章节","/component/structuredBody/component/section/code[@code='10199-8']"));
        list.add(new DocumentModule("眼章节","/component/structuredBody/component/section/code[@code='10197-2']"));
        list.add(new DocumentModule("四肢章节","/component/structuredBody/component/section/code[@code='10196-4']"));
        list.add(new DocumentModule("颈部章节","/component/structuredBody/component/section/code[@code='11411-6']"));
        list.add(new DocumentModule("鼻章节","/component/structuredBody/component/section/code[@code='10203-8']"));
        list.add(new DocumentModule("口腔、咽喉及牙齿章节","/component/structuredBody/component/section/code[@code='10201-2']"));
        list.add(new DocumentModule("直肠章节","/component/structuredBody/component/section/code[@code='10205-3']"));
        list.add(new DocumentModule("心脏章节","/component/structuredBody/component/section/code[@code='10200-4']"));
        list.add(new DocumentModule("呼吸系统章节","/component/structuredBody/component/section/code[@code='11412-4']"));
        list.add(new DocumentModule("生殖器章节","/component/structuredBody/component/section/code[@code='11400-9']"));
        list.add(new DocumentModule("腹部章节","/component/structuredBody/component/section/code[@code='10191-5']"));
        list.add(new DocumentModule("脊柱章节","/component/structuredBody/component/section/code[@code='32476-4']"));
        list.add(new DocumentModule("健康指导章节","/component/structuredBody/component/section/code[@code='69730-0']"));
        list.add(new DocumentModule("转诊建议章节","/component/structuredBody/component/section/code[@code='18776-1']"));
        list.add(new DocumentModule("下次随访安排章节","/component/structuredBody/component/section/code[@displayName='下次随访安排']"));
        return list;
    }

}
